
<?php
use yii\helpers\Html;
use \backend\controllers\DtActionFilter;
$project_id = Yii::$app->request->get("project_id");

if (!empty($project_id)){
    $isView = DtActionFilter::checkProject('project_edit',$project_id);
}else{
    $isView=true;
    return '无用户id';
}
?>
<div class="container containerShadow">
    <div class="row">
        <div class="topimg">
            <div class="left pull-left">
                <span>流转、前期处置及维护情况</span>
            </div>
            <div class="pull-right">
                <a href="javascript:void(0)">
                    <?php
                    if (!empty($isView)){
                        echo Html::img("/image/projectDetails/edit.png",["id"=>"getBase","id"=>"getMain","data-val"=>11]);
                    }
                    ?>
                </a>
            </div>
        </div>
        <table class="tableRaius liuZhuanList" border="0" cellspacing="0" cellpadding="0"
               style="border-collapse:separate;border-spacing: 0;width: 100%;">
            <tr>
                <td>转让日期</td>
                <td>转让方-受让方</td>
                <td>转让内容</td>
                <td>备注</td>
            </tr>
            <?php
            if (!empty($transferHistory) && count($transferHistory) > 0) {
                foreach ($transferHistory as $k => $v){
                    $transferDate = !empty($v['transfer_date'])?$v['transfer_date']:'';
                    $transfer = !empty($v['transfer'])?$v['transfer']:'';
                    $content = !empty($v['content'])?$v['content']:'';
                    $remark = !empty($v['remark'])?$v['remark']:'';
                    echo <<<TABLE
<tr>
                    <td>
                    	<pre>$transferDate</pre>
                    </td>
                    <td>
                    	<pre placeholder="如：信达—中信">$transfer</pre>
                    </td>
                    <td>
                    	<pre>$content</pre>
                    </td>
                    <td>
                    	<pre>$remark</pre>
                    </td>
                </tr>
TABLE;
                }
            }
            ?>
        </table>
    </div>
</div>
